java square root program